package fr.afcepf.ticketing.service;

import java.util.List;

import javax.ejb.Local;

import fr.afcepf.ticketing.domain.Address;
import fr.afcepf.ticketing.domain.Customer;

@Local
public interface CustomerService {
	Customer authenticateCustomer(String login, String password);

	Customer createCustomer(Customer customer, Address address);

	Customer findCustomer(Long customerId);

	List<Customer> findAllCustomers();

	Customer updateCustomer(Customer customer, Address address);

	void deleteCustomer(Customer customer);
	
	public Customer getCustomerByLogin(String login);
	
	public void updateCustomerByLogin(String login, Long id, Customer cust);
	
	public Customer merge(Customer cust);

}